Skip to content

[RFC] chore: add OpenTelemetry and local observability stack#425

Draft
knowald wants to merge 3 commits intothe-momentum:mainfrom
knowald:chore/add-observability
Draft

[RFC] chore: add OpenTelemetry and local observability stack#425
knowald wants to merge 3 commits intothe-momentum:mainfrom
knowald:chore/add-observability

Conversation

@knowald
Copy link

@knowald knowald commented Feb 3, 2026


Note: This is a draft/RFC, not ready to merge.


Description

Integrates OpenTelemetry for distributed tracing and metrics collection.

Auto-instrumented:

  • HTTP requests (FastAPI/ASGI)
  • Database queries (SQLAlchemy)
  • Redis operations
  • Outbound HTTP calls (httpx)
  • Celery tasks

Stack:

  • OTLP Collector - receives and routes telemetry
  • Tempo - trace storage
  • Prometheus - metrics storage
  • Loki - log aggregation
  • Grafana - Exploration UI at localhost:3001

Configuration:

OTEL_ENABLED=true
OTEL_EXPORTER_ENDPOINT=otel-collector:4317
OTEL_SERVICE_NAME=open-wearables-api

Disabled by default. When disabled, no instrumentation overhead.

Checklist

General

  • My code follows the project's code style
  • I have performed a self-review of my code
  • I have added tests that prove my fix/feature works (if applicable)
  • New and existing tests pass locally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant